/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package MainClasses.Event;
import MainClasses.MyDate;
/**
 *
 * @author andrewcutler
 */
public class UserEvent extends Event{

    public UserEvent()                                { super(Event.USER);                    }
    public UserEvent(String name)                     { super(Event.USER, name);              }
    public UserEvent(String name, String description) { super(Event.USER, name, description); }
    
    public EventPanel getPanel()
    {
        return new StandardPanel(this);
    }
    
    @Override
    public String getUniqueID() {
        return Event.typeStrings[getType()]+":::"
                +getEndDate().toString(MyDate.FORMAT_2, "-")+":::"
                +getStartDate().toString(MyDate.FORMAT_2, "-")+":::"
                +this.getName();
    }
}
